package com.jtpay.payresulthelper.model;

import android.support.annotation.NonNull;

public class AliPayOrderList implements Comparable<AliPayOrderList> {
    String bizInNo;
    String consumeFee;
    String time;

    @Override
    public String toString() {
        return "content{" + "bizInNo:" + bizInNo + ",consumeFee:" + consumeFee
                + ",time:" + time + "}"
                ;
    }

    public String getBizInNo() {
        return bizInNo;
    }

    public void setBizInNo(String bizInNo) {
        this.bizInNo = bizInNo;
    }

    public String getConsumeFee() {
        return consumeFee;
    }

    public void setConsumeFee(String consumeFee) {
        this.consumeFee = consumeFee;
    }


    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj instanceof AliPayOrderList) {
            AliPayOrderList other = (AliPayOrderList) obj;
            if (null != other) {
                if (this.getBizInNo().equals(other.getBizInNo()) && this.getConsumeFee().equals(other.getConsumeFee())
                        && this.getTime().equals(other.getTime())) {
                    return true;
                }
            }
        }
        return false;
    }

    //倒序排列
    @Override
    public int compareTo(@NonNull AliPayOrderList o) {
        return -time.compareTo(o.time);
    }
}
